<template>
    <el-date-picker
        :editable="isMobile ? false : true"
        :align="isMobile ? 'right' : 'left'"
        :format="THE_EL_DATE_PICK_FORMAT"
        v-bind="$attrs"
        v-on="$listeners"
    ></el-date-picker>
</template>
<script>
import {mapState} from 'vuex';
import {THE_EL_DATE_PICK_FORMAT} from '@/utils/constant';
export default {
    name: 'the-el-date-picker',
    data() {
        return {
            THE_EL_DATE_PICK_FORMAT
        };
    },
    computed: {
        ...mapState('app', {
            isMobile: state => state.isMobile
        })
    }
};
</script>
